dict={}
with open("english.doc","r")as file:
    data=file.read()
data=data.lower()
for c in '!"#$%&()*+,-./:;<=>?@[\]^_‘{|}~':
    data=data.replace(c,"")
data=data.replace("\n"," ")
total=data.split()
print(total)
for word in total:
    dict[word]=dict.get(word,0)+1

items = list(dict.items())
items.sort(key = lambda x:x[1],reverse = True)
for i in range(10):
    word,count= items[i]
    print("{}".format(word))
